# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-alabaster
_pkgname=alabaster
pkgver=0.7.16
pkgrel=1
pkgdesc="Lightweight, configurable Sphinx theme"
url="https://alabaster.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-flit-core py3-gpep517"
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/sphinx-doc/alabaster/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-alabaster" # Backwards compatibility
provides="py-alabaster=$pkgver-r$pkgrel" # Backwards compatibility
options="!check"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
a2a38a4923e47a89310de0128a8be3b1304b548810ef9f04bc2b4db0664f752e8db85c32bcdaec1565c9310753ab1d2b4a69789bf75ea5ba2d1ff60bd04a20d2  alabaster-0.7.16.tar.gz
"
